package com.mfangsoft.zhuangjialong.integration.customer.service;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.integration.customer.model.CustomerInfo;
import com.mfangsoft.zhuangjialong.integration.customer.model.CustomerSource;

public interface ICustomerService {
	Page<Map<String,Object>> selectCustomerPage(Page<Map<String,Object>> page);
	CustomerInfo selectCustomerDetail(Map<String,Object> map);
	void addCustomerSeller(Map<String,Object> map);
	List<Map<String,Object>> selectShopSeller(Integer shopId);
	void updateCustomerSeller(Map<String,Object> map);
	Map<String,Object> selectCustomerInstallAddress(Integer customerId);
	List<Map<String,Object>> selectFilialeByCode(String region_code);
	List<Map<String,Object>> selectShopByCode(String region_code);
	
	Integer addFiliale(Map<String,Object> map);
	/**
	 * 消费者来源增加
	 * @param customerSource
	 * @return
	 */
	Integer addCustomerSource(CustomerSource customerSource);
	/**
	 * 消费者来源的修改
	 * @param customerSource
	 * @return
	 */
	Integer updateCustomerSource(CustomerSource customerSource);
	/**
	 * 将消费者来源的状态修改为不可见
	 * @param customerSourceId
	 * @return
	 */
	Integer deleteCustomerSource(Integer customerSourceId);
	/**
	 * 消费者来源列表
	 * @return
	 */
	List<CustomerSource> selectCustomerSourceList();
	
	Integer updateCustomerProperty(Map<String,Object> map);
	
	Map<String,Object> selectCustomerProperty(Integer customerId);
}
